package com.study.talk.module.netty.message.response;


import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *   单聊信息响应
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageResponse extends TalkMessage {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户名称")
    private String username;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型")
    private Integer messageType = 0;

    @Override
    public byte getType() {
        return MessageType.SEND_MESSAGE_RESPONSE;
    }
}
